#include<stdio.h>
#include<math.h>
#include<stdlib.h>
typedef struct {
	double x;
	double y;

} POINT;

/*
//wrong definiton
void input(struct point p)
{
	scanf("%lf%lf",&p.x,&p.y);
}
*/
void input(POINT *p)
{
	//scanf("%lf%lf",&(*p).x,&(*p).y);//ugly but right
	scanf("%lf%lf",&p->x,&p->y);//nice
}
void output(POINT *p)
{
	printf("(%.3f,%.3f)\n",p->x,p->y);
}
int  main()
{
	POINT p;
	input(&p);
	ouput(&p);
	double dis=sqrt(p.x*p.x+p.y*p.y);
	printf("%.3f\n",dis);

	system("PAUSE");
	return 0;
}